package com.scau.data.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;

@Data
@TableName("order_line")
public class OrderLineDO {
    private Long orderNumber;
    @TableField("`index`")
    private Integer index; // 处于订单的第几行
    private String commodity; //商品名
    private String brand; // 品牌
    private String barCode; // 条形（商品）码
    private BigDecimal unitPrice; //
    @TableField("`count`")
    private Integer count; // 数量
    private Integer repairDays; // （厂）保修日
    private Integer returnDays; // (厂)包退日
    private Integer exchangeDays; // （厂）包换日
    @TableField("`explain`")
    private String explain; // 产品销售协议或说明

    public Long getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(Long orderNumber) {
        this.orderNumber = orderNumber;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    public String getCommodity() {
        return commodity;
    }

    public void setCommodity(String commodity) {
        this.commodity = commodity;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getBarCode() {
        return barCode;
    }

    public void setBarCode(String barCode) {
        this.barCode = barCode;
    }

    public BigDecimal getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(BigDecimal unitPrice) {
        this.unitPrice = unitPrice;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getRepairDays() {
        return repairDays;
    }

    public void setRepairDays(Integer repairDays) {
        this.repairDays = repairDays;
    }

    public Integer getReturnDays() {
        return returnDays;
    }

    public void setReturnDays(Integer returnDays) {
        this.returnDays = returnDays;
    }

    public Integer getExchangeDays() {
        return exchangeDays;
    }

    public void setExchangeDays(Integer exchangeDays) {
        this.exchangeDays = exchangeDays;
    }

    public String getExplain() {
        return explain;
    }

    public void setExplain(String explain) {
        this.explain = explain;
    }

    @Override
    public String toString() {
        return "OrderLineDo{" +
                "orderNumber=" + orderNumber +
                ", index=" + index +
                ", commodity='" + commodity + '\'' +
                ", brand='" + brand + '\'' +
                ", barCode='" + barCode + '\'' +
                ", unitPrice=" + unitPrice +
                ", count=" + count +
                ", repairDays=" + repairDays +
                ", returnDays=" + returnDays +
                ", exchangeDays=" + exchangeDays +
                ", explain='" + explain + '\'' +
                '}';
    }
}
